package com.cb.domain.service.system.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cb.core.dao.GenericDAO;
import com.cb.core.service.impl.GenericManagerImpl;
import com.cb.domain.dao.system.AppRoleDAO;
import com.cb.domain.model.system.AppRole;
import com.cb.domain.service.system.AppRoleManager;

@Service
public class AppRoleManagerImpl extends GenericManagerImpl<AppRole, Long> implements AppRoleManager{
	
	@Autowired
	private AppRoleDAO appRoleDAO;
	@Autowired
	public AppRoleManagerImpl(AppRoleDAO appRoleDAO) {
		super(appRoleDAO);
		// TODO Auto-generated constructor stub
	}
	/**
	 * {@inheritDoc}
	 */
	public List getUnselectedRoles(Long userId){
		return appRoleDAO.getUnselectedRoles(userId);
	}

	public void reinitialize() {
		// do nothing
	}
}
